package com.chance.cc.crawler.development.command.publish.people;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.development.command.job.domain.people.PeopleCrawlerScheduleJob;
import com.chance.cc.crawler.development.command.script.people.PeopleCrawlerScript;
import com.chance.cc.crawler.development.command.trigger.domain.people.PeopleScheduleTrigger;

/**
 * @Author Zhao.Hhuan
 * @Date Create in 2020/12/16 17:27
 * @Description
 *      教育部
 **/
public class PeoplePublishCrawlerJob {

    public static void main(String[] args) {

        publishCrawlerJob();
    }

    public static void publishCrawlerJob(){
        //发布采集job
        CrawlerJob crawlerJob = PeopleCrawlerScheduleJob.publishCrawlerScheduleJobInfo();
        PeopleScheduleTrigger.publishScheduleTriggerInfo(crawlerJob.generateCrawlerKey(), crawlerJob.generateCrawlerTriggerKey());
        PeopleCrawlerScript.publishCrawlerNodeScript();

    }
}
